#!/usr/bin/env ruby
#
#  Created by sjavey on 2007-10-01.
#  Copyright (c) 2007. All rights reserved.

require 'rexml/document'

class Node
  attr_reader :is_adobe_doc
  attr_reader :author
  attr_reader :createdate
  attr_reader :description
  attr_reader :directory
  attr_reader :file_size
  attr_reader :is_link
  attr_reader :mimetype
  attr_reader :name
  attr_reader :node_id
  attr_reader :owner
  attr_reader :owner_name
  
  def initialize(node)
    @is_adobe_doc = node.attributes['adobedoc'] == "true" ? true : false
    @name = node.attributes['name']
    @owner = node.attributes['owner']
    @node_id = node.attributes['nodeid']
    @mimetype = node.attributes['mimetype']
    @is_link = node.attributes['link'] == "true" ? true : false
  end
  
  
end
